<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <table border="1" bordercolor="red">
        <caption>课程表</caption>
        <thead>
            <tr>
                <th>项目</th>
                <!--向横列合并单元格5行-->
                <th colspan="5">上课</th>
                <!--向横列合并单元格2行-->
                <th colspan="2">休息</th>
            </tr>
        </thead>
        <tbody>
            <th>星期</th>
            <th>星期一</th>
            <th>星期二</th>
            <th>星期三</th>
            <th>星期四</th>
            <th>星期五</th>
            <th>星期六</th>
            <th>星期日</th>
        </tbody>
        <tbody>
            <tr>
                <!--向下合并单元格4行-->
                <td rowspan="4">上午</td>
                <td>语文</td>
                <td>数学</td>
                <td>英语</td>
                <td>英语</td>
                <td>物理</td>
                <td>计算机</td>
                <!--向下合并单元格4行-->
                <td rowspan="4">休息</td>
            </tr>

            <tr>
                <td>语文</td>
                <td>数学</td>
                <td>地理</td>
                <td>历史</td>
                <td>体育</td>
                <td>体育</td>
            </tr>

            <tr>
                <td>化学</td>
                <td>语文</td>
                <td>体育</td>
                <td>体育</td>
                <td>体育</td>
                <td>计算机</td>
            </tr>

            <tr>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
            </tr>

            <tr>
                <!--向下合并单元格2行-->
                <td rowspan="2">下午</td>
                <td>语文</td>
                <td>计算机</td>
                <td>计算机</td>
                <td>计算机</td>
                <td>计算机</td>
                <td>计算机</td>
                <!--向下合并单元格2行-->
                <td rowspan="2">休息</td>
            </tr>

            <tr>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
                <td>自习</td>
            </tr>
        </tbody>
</body>

</html>